<template>
  <div class="app">
    <el-button @click="openFullScreen">进入监控板</el-button>
    <el-dialog :visible.sync="fullScreenVisible" allowfullscreen="true" fullscreen>
      <full-screen></full-screen>
    </el-dialog>
  </div>
</template>

<script>
import FullScreen from "./FullScreen.vue";
export default {
  name: "Index",
  components: {FullScreen},
  data() {
    return {
      fullScreenVisible: false
    };
  },
  methods: {
    openFullScreen() {
      this.fullScreenVisible = true;
    }
  }
};
</script>

<style scoped lang="scss">
.app {
  margin: 20px;
}
</style>

